<template>
  <el-dialog title="收货地址" :visible.sync="dialogTableVisible">
    pdf路径:<div>{{options.row.links}}</div>
    <el-table :data="gridData">
      <el-table-column property="date" label="日期" width="150"></el-table-column>
      <el-table-column property="name" label="姓名" width="200"></el-table-column>
      <el-table-column property="address" label="地址"></el-table-column>
    </el-table>
    <div slot="footer" class="dialog-footer">
       <el-button type="primary" @click="submit">提交</el-button>
       <el-button  @click="cancel">取消</el-button>
    </div>
  </el-dialog>

</template>
<script>
 export default {
   data(){
     return{
       dialogTableVisible:false,
       gridData: [{
         date: '2016-05-02',
         name: '王小虎',
         address: '上海市普陀区金沙江路 1518 弄'
       }, {
         date: '2016-05-04',
         name: '王小虎',
         address: '上海市普陀区金沙江路 1518 弄'
       }, {
         date: '2016-05-01',
         name: '王小虎',
         address: '上海市普陀区金沙江路 1518 弄'
       }, {
         date: '2016-05-03',
         name: '王小虎',
         address: '上海市普陀区金沙江路 1518 弄'
       }],
       options:{}
     }
   },
   methods:{
     setAttrs(options){
       this.dialogTableVisible  = true
       this.options = {...options};
     },
     submit(){
       this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
         this.options.submit() ;
         this.c
       }).catch(() => {
         this.cancel() ;
       });
     },
     cancel(){
        this.dialogTableVisible  = false
     }
   }
 }
</script>
<style scoped>

</style>
